local wdtx__jink_skill = fk.CreateSkill {
  name = "wdtx__jink_skill",
}


wdtx__jink_skill:addEffect("cardskill", {
  name = "wdtx__jink_skill",
  can_use = Util.FalseFunc,
  on_effect = function(self, room, effect)
    if effect.responseToEvent then
      effect.responseToEvent.isCancellOut = true
      if room.logic.class.name ~= "wdtx_logic" then return end
      if effect.card and effect.card:getMark("@slash_back") > 0 and effect.responseToEvent and effect.responseToEvent.from then
        room:useVirtualCard("slash", nil, effect.from, { effect.responseToEvent.from }, wdtx__jink_skill.name, true)
      end
    end
  end
})


return wdtx__jink_skill
